package com.sunnos.express.mapper;

import java.util.List;
import java.util.Map;

import com.sunnos.express.entity.Right;
import com.sunnos.express.entity.Role;
import com.sunnos.express.entity.User;

public interface RoleMapper {
	public Role getRole(Map<String,Object> param);
	public List<Role> getRoleList(Map<String,Object> param);
	public List<User> getRoleUserList(Map<String,Object> param);
	public int getRoleListTotal();
	public void insertRole(String param);
	public void insertRoleRight(Map<String,Object> param);
	public void updateRole(Map<String,Object> param);
	public void updateRoleRight(Map<String,Object> param);
	public void deleteRole(int param);
	public void deleteRoleRight(int param);
	public List<Right> getTopRight();
	public List<Right> getSubRight(int param);
}
